package leetcode20210929;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LUYAO
 * Date: 2021-09-29
 * Time: 21:53
 */
public class LeftResolve {
    public static void main(String[] args) {
        Solution2 s2 = new Solution2();
        System.out.println(s2.reverseLeftWords("asdfgh", 2));
    }
}

class Solution2 {
    public String reverseLeftWords(String s, int n) {
        return s.substring(n, s.length()) + s.substring(0, n);
    }
}
